//
//  AppDelegate.swift
//  微博项目
//
//  Created by xuwzh on 15/9/21.
//  Copyright © 2015年 xuwzh. All rights reserved.
//

import UIKit

///定义的全局变量
var sharedAccount = UserAccount.loadUserAccount()

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        ///设置全局导航栏外观，一经设置，全局有效
        UINavigationBar.appearance().tintColor=UIColor.orangeColor()
        
        
        ///用户使用时，判断用户是否已经登录过
        ///可以把此变量定义为全局，写到类外面即可
//        var account = UserAccount.loadUserAccount()
        
        return true
    }

   
}

